import request from '@/utils/request'

// 查询计费规则列表
export function listCollectFees(query) {
  return request({
    url: '/system/collectFees/list',
    method: 'get',
    params: query
  })
}

// 查询计费规则详细
export function getCollectFees(id) {
  return request({
    url: '/system/collectFees/' + id,
    method: 'get'
  })
}

// 新增计费规则
export function addCollectFees(data) {
  return request({
    url: '/system/collectFees',
    method: 'post',
    data: data
  })
}

// 修改计费规则
export function updateCollectFees(data) {
  return request({
    url: '/system/collectFees',
    method: 'put',
    data: data
  })
}

// 删除计费规则
export function delCollectFees(id) {
  return request({
    url: '/system/collectFees/' + id,
    method: 'delete'
  })
}

// 导出计费规则
export function exportCollectFees(query) {
  return request({
    url: '/system/collectFees/export',
    method: 'get',
    params: query
  })
}